Package com.amazon.A3L.messaging.util
Class A3LMessagingInitProvider
- java.lang.Object
-
- android.content.ContentProvider
-
- com.amazon.A3L.messaging.util.A3LMessagingInitProvider
-
- All Implemented Interfaces:
android.content.ComponentCallbacks,android.content.ComponentCallbacks2
public class A3LMessagingInitProvider extends android.content.ContentProvider
-
-
Constructor Summary
Constructors Constructor Description A3LMessagingInitProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdelete(android.net.Uri uri, java.lang.String s, java.lang.String[] strings)java.lang.StringgetType(android.net.Uri uri)android.net.Uriinsert(android.net.Uri uri, android.content.ContentValues contentValues)booleanonCreate()This is for initializing the A3L Messaging which initializes the application context and current platform which will be used by other A3L Messaging method.android.database.Cursorquery(android.net.Uri uri, java.lang.String[] strings, java.lang.String s, java.lang.String[] strings1, java.lang.String s1)All the methods below this point are default because we are not storing anything In future if we want cache any data like registration tokens, subscription request which can be retried after sometime or metrics data which can be flushed later.intupdate(android.net.Uri uri, android.content.ContentValues contentValues, java.lang.String s, java.lang.String[] strings)-
Methods inherited from class android.content.ContentProvider
applyBatch, applyBatch, attachInfo, bulkInsert, call, call, canonicalize, clearCallingIdentity, delete, dump, getCallingAttributionSource, getCallingAttributionTag, getCallingPackage, getCallingPackageUnchecked, getContext, getPathPermissions, getReadPermission, getStreamTypes, getWritePermission, insert, onCallingPackageChanged, onConfigurationChanged, onLowMemory, onTrimMemory, openAssetFile, openAssetFile, openFile, openFile, openPipeHelper, openTypedAssetFile, openTypedAssetFile, query, query, refresh, requireContext, restoreCallingIdentity, shutdown, uncanonicalize, update
-
-
-
-
Method Detail
-
onCreate
public boolean onCreate()
This is for initializing the A3L Messaging which initializes the application context and current platform which will be used by other A3L Messaging method. Any operation which needs to be performed at the start of the application can added in this method.- Specified by:
onCreatein classandroid.content.ContentProvider- Returns:
-
query
@Nullable public android.database.Cursor query(@NonNull android.net.Uri uri, @Nullable java.lang.String[] strings, @Nullable java.lang.String s, @Nullable java.lang.String[] strings1, @Nullable java.lang.String s1)All the methods below this point are default because we are not storing anything In future if we want cache any data like registration tokens, subscription request which can be retried after sometime or metrics data which can be flushed later. For more details read about Content Providers https://developer.android.com/guide/topics/providers/content-provider-basics- Specified by:
queryin classandroid.content.ContentProvider
-
getType
@Nullable public java.lang.String getType(@NonNull android.net.Uri uri)- Specified by:
getTypein classandroid.content.ContentProvider
-
insert
@Nullable public android.net.Uri insert(@NonNull android.net.Uri uri, @Nullable android.content.ContentValues contentValues)- Specified by:
insertin classandroid.content.ContentProvider
-
delete
public int delete(@NonNull android.net.Uri uri, @Nullable java.lang.String s, @Nullable java.lang.String[] strings)- Specified by:
deletein classandroid.content.ContentProvider
-
update
public int update(@NonNull android.net.Uri uri, @Nullable android.content.ContentValues contentValues, @Nullable java.lang.String s, @Nullable java.lang.String[] strings)- Specified by:
updatein classandroid.content.ContentProvider
-
-